#include <stdio.h>
#include <unistd.h>
#include <string.h>

int main()
{
    //使用系统调用写入
    const char* s1 = "Hello,Write\n";
    write(1,s1,strlen(s1));

    //使用C库接口写入
    const char* s2 = "Hello,fprintf\n";
    fprintf(stdout,"%s",s2);

    const char* s3 = "Hello,fwrite\n";
    fwrite(s3,strlen(s3),1,stdout);

    fork();
    return 0;
}